package com.littcore.saap.message.biz;

import java.util.List;

import com.littcore.saap.message.bo.UserMessageBo;
import com.littcore.saap.message.vo.UserMessageStatVo;

/**
 * .
 * 
 * <pre><b>描述：</b>
 *    
 * </pre>
 * 
 * <pre><b>修改记录：</b>
 *    
 * </pre>
 * 
 * @author <a href="mailto:littcai@hotmail.com">蔡源</a>
 * @since 2015年11月4日
 * @version 1.0
 */
public interface IUserMessageBizService {
  
  public void delete(long id);

  /**
   * 阅读.
   *
   * @param id the id
   * @return the user message bo
   */
  public UserMessageBo doRead(long id);
  
  public void doReadAll(int receiveBy, int tenantId, String moduleCode);
  
  public void deleteAll(int receiveBy, int tenantId, String moduleCode);

  public List<UserMessageStatVo> countUnread(int receiveBy, int tenantId);

  /**
   * 查找.
   *
   * @return the list
   */
  public List<UserMessageBo> findBy(int receiveBy, int tenantId, boolean isRead, String moduleCode);

}